/*
 * @Author: GongSaiPeng
 * @Date: 2024-03-16 19:18:22
 * @LastEditTime: 2024-04-15 09:39:27
 * @LastEditors: GongSaiPeng
 * @Description: router配置
 * @FilePath: \main-app\src\router\index.js
 */
import { createRouter, createWebHistory } from "vue-router";
// 主程序入口
import MainView from "@/views/MainView/index.vue";
// 第三方vue3的md编辑器插件
import MdEditor from "@/components/mdEditor/index.vue";
// 分屏组件
import SplitScreen from "@/components/splitScreen/index.vue";
// 上传组件
import Upload from "@/components/uploadEl/index.vue";
// vform组件
import vForm from "@/components/vForm/index.vue";
// openlayer地图
import OpenLayer from "@/components/openlayer/index.vue";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      name: "main",
      component: MainView,
    },
    {
      path: "/mdEditor",
      name: "MdEditor",
      component: MdEditor,
    },
    {
      path: "/splitScreen",
      name: "SplitScreen",
      component: SplitScreen,
    },
    {
      path: "/upload",
      name: "Upload",
      component: Upload,
    },
    {
      path: "/vform",
      name: "vForm",
      component: vForm,
    },
    {
      path: "/openlayer",
      name: "OpenLayer",
      component: OpenLayer,
    }
  ],
});

export default router;
